<template>
  <header class="header">
    <div class="header-main">
      <div class="header-left">{{ formatDate() }}</div>
      <div class="header-right">
        <a href="" style="color: white">登录/注册</a>
      </div>
    </div>
  </header>
</template>

<script setup lang="ts">
// 从工具函数导入日期格式化方法
import { formatDate } from "../utils/dateUtils";
</script>

<style scoped>
.header {
  width: 100%;
  background-color: #3c3c3c;
  padding: 10px 0;
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}
</style>
